package com.buba.feign;

import com.buba.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("client1")
public interface UserFeign {
    @GetMapping("/user/findUserById/{id}")
    User findUserById(@PathVariable("id") Integer id);

    @GetMapping("/user/findUserById2")
    User findUserById2(@RequestParam("id") Integer id);

    @PostMapping("/user/findByUser")
    User findByUser(@RequestBody User user);
}
